package com.cqemme.activitiservice.listener;


import com.alibaba.fastjson.JSONObject;
import com.cqemme.activitiservice.feign.UserServiceFeign;
import com.cqemme.activitiservice.service.ListenerService;
import com.cqemme.comm.po.Result;
import com.cqemme.comm.utils.JackSonUtils;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import lombok.extern.slf4j.Slf4j;
import org.activiti.bpmn.model.FlowElement;
import org.activiti.bpmn.model.UserTask;
import org.activiti.engine.delegate.DelegateExecution;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.*;

/**
 * 公共报警监听
 *
 * @author nejery
 */
@Service("testListener")
@Slf4j
public class TestListener {

    @Resource
    private ListenerService listenerService;


    @Resource
    private UserServiceFeign userServiceFeign;



    /**
     * 测试执行流程
     * @param execution  执行对象
     */
    public void test(DelegateExecution execution){
        //execution.getVariable();
        log.info("测试执行了！！！");
    }

}
